package cn.intotw.rdcj.core.exception;

import lombok.Data;

/**
 * @Descripition: 业务异常抛出，业务异常一般在业务进行中，进行一般业务校验时，出现业务上的非法情况，此时抛出业务异常
 * @Author: chenxiang
 * @Date: 2020年4月24日16:35:13
 */
@Data
public class BusinessException extends RuntimeException {
    protected String code;
    protected String bizMessage;


    private BusinessException() {
        super();
    }

    public BusinessException(String code, String message) {
        this.code = code;
        this.bizMessage = message;
    }

    public BusinessException(String code, String message,Throwable cause) {
        super(cause);
        this.code = code;
        this.bizMessage = message;
    }
}
